//
//  XmlAccess.h
//  xsd2cocoa
//
//  Created by Stefan Winter on 5/22/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "TouchXML.h"
#import "XSDschema.h"

@interface XSSchemaNode : NSObject {
@private
    XSDschema* _schema;
}

@property (nonatomic, retain) XSDschema* schema;

+ (NSNumber*) node: (CXMLElement*) node boolAttribute: (NSString*) attribute;
+ (NSString*) node: (CXMLElement*) node stringAttribute: (NSString*) attribute;
+ (NSNumber*) node: (CXMLElement*) node intAttribute: (NSString*) attribute;
+ (CXMLElement*) node: (CXMLElement*) element childWithName: (NSString*) name;
+ (NSArray*) node: (CXMLElement*) element childrenWithName: (NSString*) name;
- (id) initWithSchema: (XSDschema*) schema;

@end
